package com.example.kemgdemo.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * 学号：1401030048
 * Created by 梁嘉伟 on 2019/7/11
 */

@Getter
@Setter
@Entity(name = "toilet")
@Table(name = "toilet")
public class ToiletEntity extends BaseEntity {

    @Column(name = "floor")
    private Integer floor;

    @Column(name = "gender")
    private Integer gender;

    @Column(name = "maxsize")
    private Integer maxsize;

    @Column(name = "isActive")
    private Integer isActive;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "building_id")
    private BuildingEntity buildingEntity;
}
